package com.qqtech.qquan.community.service;

import java.util.List;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.community.model.CommunityAddr;
import com.qqtech.qquan.community.model.CommunityAddrVo;

public interface CommunityAddrService extends BaseService<CommunityAddr> {
	
	/**
	 * 根据上级获取列表
	 * @param parentId
	 * @return
	 */
	public List<CommunityAddrVo> queryListByParentId(Integer communityId, Integer parentId);
	
	/**
	 * 根据上级获取列表Cache
	 * @param communityId 社区id
	 * @param parentId 上级id
	 * @return
	 */
	public List<CommunityAddrVo> queryListByParentIdCache(Integer communityId, Integer parentId);
	
	/**
	 * 根据子id获取所有上级列表
	 * @param childrenId
	 * @return
	 */
	public List<CommunityAddrVo> queryListByChildren(Integer childrenId, Integer communityId);
}